package com.yuw.Objectstreamdemo;

import java.io.Serializable;

public class Student implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID=1L;
	
	//属性
	private String stuName;
	private String stuNum;
	private double stuScore;
	
	//行为
	/**
	 * 行为方法：输出学生个人信息
	 */
	public void printMe() {
		System.out.println("姓名：" + stuName + ", 学号：" + stuNum + ", 成绩：" + stuScore);
	}
	//构造方法


	public Student() {
		super();
		
	}
	
	public Student(String stuName, String stuNum, double stuScore) {
		super();
		this.stuName = stuName;
		this.stuNum = stuNum;
		this.stuScore = stuScore;
	}
	//getter和setter


	public String getStuName() {
		return stuName;
	}


	public void setStuName(String stuName) {
		this.stuName = stuName;
	}


	public String getStuNum() {
		return stuNum;
	}


	public void setStuNum(String stuNum) {
		this.stuNum = stuNum;
	}


	public double getStuScore() {
		return stuScore;
	}


	public void setStuScore(double stuScore) {
		this.stuScore = stuScore;
	}


	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
	

}
